package EveryDayPractice;

public class Practice20 {
         public static void main(String[] args) {
            double[] x = new double[50];
            x[0]=2;
            x[1]=3;
            x[2]=5;
            double[] n = new double[50];
            n[0]=1;
            n[1]=2;
            n[2]=3;
             double c=0;
             for(int i=2;i<=2;i++)
             {
                 x[i]=x[i-1]+x[i-2];
                 n[i]=n[i-1]+n[i-2];
                 c+=x[i]/n[i];
             }
System.out.println(c+2+3./2.0);

         }
}
